//
//  YZBaseVC.m
//  VET
//
//  Created by Lam BG on 2018/6/25.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import "YZBaseVC.h"

#import "YZWorkbenchVC.h"
#import "YZIMVC.h"
#import "YZCommunityVC.h"
#import "YZPersonalCenterVC.h"

@interface YZBaseVC ()

@end

@implementation YZBaseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self setupCommonView];
}

- (void)dealloc {
    
    NSLog(@"--- %@ dealloc ---", NSStringFromClass([self class]));
}

- (void)pushTest {

    int rand = random() % 4;
    UIViewController *vc = nil;

    switch (rand) {
            case 0:
        {
            vc = [[YZWorkbenchVC alloc] initWithNibName:@"YZWorkbenchVC" bundle:nil];
        }
            break;

            case 1:
        {
            vc = [[YZIMVC alloc] initWithNibName:@"YZIMVC" bundle:nil];
        }
            break;

            case 2:
        {
            vc = [[YZCommunityVC alloc] initWithNibName:@"YZCommunityVC" bundle:nil];
        }
            break;

        default:
        {
            vc = [[YZCommunityVC alloc] initWithNibName:@"YZCommunityVC" bundle:nil];
        }

            break;
    }

    [self.navigationController pushViewController:vc animated:YES];
}

@end
